package com.gexin.model.order;

import com.gexin.model.order.base.BaseOrderPresale;

import java.util.List;

/**
 * 业务名称:  t_order_presale(预售商品的订单副表) 
 */
@SuppressWarnings("serial")
public class OrderPresale extends BaseOrderPresale<OrderPresale> {
	public static final OrderPresale dao = new OrderPresale();

	public OrderPresale findByOrderIdAndType(String order_id ,Integer type){
		return dao.findFirst("select * from t_order_presale where order_id = ? and type = ? ",order_id,type);
	}

	public List<OrderPresale> findByOrderId(String order_id){
		return dao.find("select * from t_order_presale where order_id = ?",order_id);
	}

}
